html,
body,
#root {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
  'Noto Color Emoji';
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

canvas {
  display: block;
}

body {
  font-size: 14px; /* 减小全局字体大小 */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}


/* 高亮行的样式 */
.highlight-row {
  background-color: #e5eefc !important; /* 浅蓝色背景 */
}

.page-container {
  font-size: 14px; /* 设置全局字体大小 */
}

/* 新增表格样式 */


:where(.css-dev-only-do-not-override-jcwvac).ant-btn {
  font-size: 14px !important;
}

a:where(.css-dev-only-do-not-override-jcwvac).ant-typography-ellipsis-single-line, span:where(.css-dev-only-do-not-override-jcwvac).ant-typography-ellipsis-single-line {
  font-size: 14px !important;
}

.ant-select-dropdown {
  max-height: 300px;
  overflow-y: auto;
}

.ant-select-item-option-content {
  white-space: normal;
  word-break: break-all;
  line-height: 1.5;
  padding: 4px 0;
}

.ant-form-item {
  margin-bottom: 16px !important;
}

.ant-drawer-body {
  .ant-form-item-control-input-content {
    .ant-select {
      width: 100% !important;
    }
  }
}

/* 调整侧边栏按钮位置*/
.ant-pro-sider-collapsed-button {
  inset-block-start: 100px !important;
}

/* 调整表格行高*/
.ant-table.ant-table-middle .ant-table-title, .ant-table.ant-table-middle .ant-table-footer, .ant-table.ant-table-middle .ant-table-thead > tr > th, .ant-table.ant-table-middle .ant-table-tbody > tr > td, .ant-table.ant-table-middle tfoot > tr > th, .ant-table.ant-table-middle tfoot > tr > td {
  padding: 2px 2px !important;
}

.ant-pro-table .ant-pro-table-search {
  margin-bottom: 0 !important;
  padding: 0 !important;
  background: #fff;
}

.ant-pro-table-list-toolbar-container {
  display: flex;
  justify-content: space-between;
  padding: 0 !important;
  margin-bottom: 4px;
}

.ant-table-pagination .ant-pagination {
  margin: 4px 0 !important;
}

/* 调整页面标题*/
.ant-page-header .ant-page-header-heading-title {
  padding-left: 20px;
}


.ant-pro-global-footer {
  margin-block-start: 12px !important;
}
